package net.zkbc.helloworld.entity;

import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;

import net.zkbc.shiro.entity.ShiroUser;

public class User implements Serializable, ShiroUser {

	private static final long serialVersionUID = 1L;

	private Long id;
	private String loginName;
	private String password;
	private String salt;
	private Date loginPasswordTime;
	private String plainPassword;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public Date getLoginPasswordTime() {
		return loginPasswordTime;
	}

	public void setLoginPasswordTime(Date loginPasswordTime) {
		this.loginPasswordTime = loginPasswordTime;
	}

	public String getPlainPassword() {
		return plainPassword;
	}

	public void setPlainPassword(String plainPassword) {
		this.plainPassword = plainPassword;
	}

	@Override
	public boolean isDisabled() {
		return false;
	}

	@Override
	public Collection<String> getRoleNames() {
		return Collections.emptyList();
	}

	@Override
	public Collection<String> getPermissionNames() {
		return Collections.emptyList();
	}

}
